package com.jiang.jixiang.ui.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.jiang.jixiang.R;
import com.jiang.jixiang.bean.BillingRecordsBean;
import com.ws.universal.tools.utils.StringUtils;

public class BillingAdapter extends BaseQuickAdapter<BillingRecordsBean.BillingRecors, BaseViewHolder> {
    public BillingAdapter() {
        super(R.layout.item_billing);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, BillingRecordsBean.BillingRecors bean) {
        holder.setText(R.id.tvItemName, bean.getType());
        holder.setText(R.id.tvItemTime, bean.getTime());
        holder.setText(R.id.tvItemValue, StringUtils.getString(getContext().getString(R.string.money), bean.getAmount()));

    }

}
